package com.groupwork.meeting.entity;

import java.util.Objects;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2021/10/28 0:09
 * @Description //TODO $ 实体类的基类
 */


public class BaseEntity {
    private String userId;
    private String userName;
    private String userPwd;
    private String uPresident;
    private String salt;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getuPresident() {
        return uPresident;
    }

    public void setuPresident(String uPresident) {
        this.uPresident = uPresident;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof User)) return false;
        User user = (User) o;
        return Objects.equals(getUserId(), user.getUserId()) &&
                Objects.equals(getUserName(), user.getUserName()) &&
                Objects.equals(getUserPwd(), user.getUserPwd()) &&
                Objects.equals(getuPresident(), user.getuPresident()) &&
                Objects.equals(getSalt(), user.getSalt());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getUserId(), getUserName(), getUserPwd(), getuPresident(), getSalt());
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", uPresident='" + uPresident + '\'' +
                ", salt='" + salt + '\'' +
                '}';
    }
}
